///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun  7 2007)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#ifdef WX_PRECOMP

#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__

#else
#include <wx/wx.h>
#endif //WX_PRECOMP

#include "creatorgui.h"

///////////////////////////////////////////////////////////////////////////

CreatorFrameGui::CreatorFrameGui( wxWindow* parent, int id, wxString title, wxPoint pos, wxSize size, int style ) : wxFrame( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxVERTICAL );
	
	m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
	
	bSizer6->Add( m_notebook, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer6 );
	this->Layout();
	m_statusBar2 = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
	m_menubar2 = new wxMenuBar( 0 );
	m_menuFile = new wxMenu();
	wxMenuItem* menuFileOpen = new wxMenuItem( m_menuFile, ID_FILE_OPEN, wxString( wxT("&Open...") ) + wxT('\t') + wxT("CTRL-O"), wxT("Open a context file"), wxITEM_NORMAL );
	m_menuFile->Append( menuFileOpen );
	wxMenuItem* menuFileSave = new wxMenuItem( m_menuFile, ID_FILE_SAVE, wxString( wxT("&Save") ) + wxT('\t') + wxT("CTRL-S"), wxT("Save the context"), wxITEM_NORMAL );
	m_menuFile->Append( menuFileSave );
	wxMenuItem* menuFileSaveAs = new wxMenuItem( m_menuFile, ID_FILE_SAVEAS, wxString( wxT("Save As ...") ) , wxT("Save the context to a specific name"), wxITEM_NORMAL );
	m_menuFile->Append( menuFileSaveAs );
	
	m_menuFile->AppendSeparator();
	wxMenuItem* menuFileExit = new wxMenuItem( m_menuFile, ID_FILE_EXIT, wxString( wxT("E&xit") ) + wxT('\t') + wxT("ALT-F4"), wxT("CLose the Creator"), wxITEM_NORMAL );
	m_menuFile->Append( menuFileExit );
	m_menubar2->Append( m_menuFile, wxT("&File") );
	
	m_menuEdit = new wxMenu();
	m_menubar2->Append( m_menuEdit, wxT("&Edit") );
	
	m_menuHelp = new wxMenu();
	wxMenuItem* menuHelpAbout = new wxMenuItem( m_menuHelp, ID_HELP_ABOUT, wxString( wxT("&About") ) + wxT('\t') + wxT("F1"), wxT("About Creator"), wxITEM_NORMAL );
	m_menuHelp->Append( menuHelpAbout );
	m_menubar2->Append( m_menuHelp, wxT("&Help") );
	
	this->SetMenuBar( m_menubar2 );
	
	
	// Connect Events
	this->Connect( menuFileOpen->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CreatorFrameGui::OnFileOpen ) );
	this->Connect( menuFileSave->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CreatorFrameGui::OnFileSave ) );
	this->Connect( menuFileSaveAs->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CreatorFrameGui::OnFileSaveAs ) );
	this->Connect( menuFileExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CreatorFrameGui::OnFileExit ) );
	this->Connect( menuHelpAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CreatorFrameGui::OnHelpAbout ) );
}

CreatorPanelGui::CreatorPanelGui( wxWindow* parent, int id, wxPoint pos, wxSize size, int style ) : wxPanel( parent, id, pos, size, style )
{
	wxBoxSizer* bSizer10;
	bSizer10 = new wxBoxSizer( wxVERTICAL );
	
	m_splitter3 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D);
	m_splitter3->SetMinimumPaneSize( 60 );
	m_splitter3->Connect( wxEVT_IDLE, wxIdleEventHandler( CreatorPanelGui::m_splitter3OnIdle ), NULL, this );
	m_panel7 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxVERTICAL );
	
	m_treeCreator = new wxTreeCtrl( m_panel7, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE);
	bSizer11->Add( m_treeCreator, 1, wxEXPAND, 5 );
	
	m_panel7->SetSizer( bSizer11 );
	m_panel7->Layout();
	bSizer11->Fit( m_panel7 );
	m_panel8 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer12;
	bSizer12 = new wxBoxSizer( wxVERTICAL );
	
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticText1 = new wxStaticText( m_panel8, wxID_ANY, wxT("Fichier xml"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1->Wrap( -1 );
	bSizer7->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_editXml = new wxTextCtrl( m_panel8, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	bSizer7->Add( m_editXml, 1, wxALL, 5 );
	
	bSizer12->Add( bSizer7, 0, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer71;
	bSizer71 = new wxBoxSizer( wxHORIZONTAL );
	
	m_staticText11 = new wxStaticText( m_panel8, wxID_ANY, wxT("Fichier RNG"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText11->Wrap( -1 );
	bSizer71->Add( m_staticText11, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_editRng = new wxTextCtrl( m_panel8, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	bSizer71->Add( m_editRng, 1, wxALL, 5 );
	
	bSizer12->Add( bSizer71, 0, wxEXPAND, 5 );
	
	m_staticline1 = new wxStaticLine( m_panel8, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
	bSizer12->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
	
	m_notebook = new wxNotebook( m_panel8, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
	m_panel10 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer13;
	bSizer13 = new wxBoxSizer( wxVERTICAL );
	
	m_pgmConfig = new wxPropertyGridManager(m_panel10, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPGMAN_DEFAULT_STYLE|wxPG_DESCRIPTION|wxTAB_TRAVERSAL);
	m_pgmConfig->SetExtraStyle( wxPG_EX_MODE_BUTTONS ); 
	bSizer13->Add( m_pgmConfig, 1, wxEXPAND, 5 );
	
	m_panel10->SetSizer( bSizer13 );
	m_panel10->Layout();
	bSizer13->Fit( m_panel10 );
	m_notebook->AddPage( m_panel10, wxT("a page"), true );
	m_panel11 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer14;
	bSizer14 = new wxBoxSizer( wxVERTICAL );
	
	m_pgmContext = new wxPropertyGridManager(m_panel11, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxPGMAN_DEFAULT_STYLE|wxPG_DESCRIPTION|wxTAB_TRAVERSAL);
	m_pgmContext->SetExtraStyle( wxPG_EX_MODE_BUTTONS ); 
	bSizer14->Add( m_pgmContext, 1, wxEXPAND, 5 );
	
	m_panel11->SetSizer( bSizer14 );
	m_panel11->Layout();
	bSizer14->Fit( m_panel11 );
	m_notebook->AddPage( m_panel11, wxT("a page"), false );
	
	bSizer12->Add( m_notebook, 1, wxEXPAND, 5 );
	
	m_panel8->SetSizer( bSizer12 );
	m_panel8->Layout();
	bSizer12->Fit( m_panel8 );
	m_splitter3->SplitVertically( m_panel7, m_panel8, 237 );
	bSizer10->Add( m_splitter3, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer10 );
	this->Layout();
	
	// Connect Events
	m_treeCreator->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( CreatorPanelGui::OnTreeCreatorSelChanged ), NULL, this );
	m_treeCreator->Connect( wxEVT_COMMAND_TREE_SEL_CHANGING, wxTreeEventHandler( CreatorPanelGui::OnTreeCreatorSelChanging ), NULL, this );
}
